package com.qfedu.service;

import com.qfedu.entity.UserEntity;
import com.qfedu.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class UserServiceImpl implements UserService {

    @Autowired(required = false)
    UserMapper userMapper;
    //登录
    @Override
    public UserEntity login(UserEntity ue) {
        return userMapper.login(ue);
    }

    @Override
    public UserEntity queryuser(UserEntity ue) {
        return userMapper.queryuser(ue);
    }

    //注册
    @Override
    public boolean regist(UserEntity ue) {
        return userMapper.regist(ue);
    }

    //信息修改
    public boolean upduser(UserEntity ue){

        return userMapper.upduser(ue);
    }

}
